package org.tru42.signal.processors.converter;

import org.tru42.signal.lang.SObject;
import org.tru42.signal.lang.annotation.Signal;
import org.tru42.signal.lang.annotation.Sink;

public class StringToBytes extends SObject {

	
	@Sink
	public void string(long timestamp, String value) {
		for(byte b: value.getBytes())
			bytes(timestamp, b);
	}

	@Signal
	public void bytes(long timestamp, byte value) {
		trigger("bytes", timestamp, value);
	}
	
}
